<!-- 计数器的组件 -->
<template>
    
    <div>
        {{ number }}
        
        <button @click="number++">
            ++
        </button>
    </div>
</template>

<script>
    export default {
        data(){
            return {
                number: 0
            }
        }
    }
</script>